package com.ltkj.baseplatform.domain;

import com.ltkj.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 文章管理-栏目对象 art_channel
 * 
 * @author liupf
 * @date 2023-08-28
 */
@ApiModel(value = "内容管理-栏目对象")
public class ArtChannel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 栏目ID */

    @ApiModelProperty("主键ID")
    private Long id;

    /** 栏目名称 */
    @ApiModelProperty("栏目名称")
    private String channelName;

    /** 上级栏目ID */
    @ApiModelProperty("上级栏目ID")
    private Long parentId;

    /** 上级栏目ID */
    @ApiModelProperty("排序")
    private Long sortNum;

    /** 访问路径 */
    @ApiModelProperty("访问路径")
    private String visitPath;

    /** 内容代码路径 */
    @ApiModelProperty("内容代码路径")
    private String contentPath;

    /** 状态（是否在回收站） */
    //@ApiModelProperty("状态（0不在回收站，1在回收站），默认0")
    private String status;

    /** 是否删除 */
    @ApiModelProperty("是否删除（0否，1是，2回收站，默认0）")
    private String isDel;

    /** 子栏目 */
    private List<ArtChannel> children = new ArrayList<>();

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setChannelName(String channelName) 
    {
        this.channelName = channelName;
    }

    public String getChannelName() 
    {
        return channelName;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setSortNum(Long sortNum) 
    {
        this.sortNum = sortNum;
    }

    public Long getSortNum() 
    {
        return sortNum;
    }
    public void setVisitPath(String visitPath) 
    {
        this.visitPath = visitPath;
    }

    public String getVisitPath() 
    {
        return visitPath;
    }
    public void setContentPath(String contentPath) 
    {
        this.contentPath = contentPath;
    }

    public String getContentPath() 
    {
        return contentPath;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setIsDel(String isDel) 
    {
        this.isDel = isDel;
    }

    public String getIsDel() 
    {
        return isDel;
    }

    public List<ArtChannel> getChildren() {
        return children;
    }

    public void setChildren(List<ArtChannel> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("channelName", getChannelName())
            .append("parentId", getParentId())
            .append("sortNum", getSortNum())
            .append("visitPath", getVisitPath())
            .append("contentPath", getContentPath())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("isDel", getIsDel())
            .append("remark", getRemark())
            .toString();
    }
}
